package com.woniu.car.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author kk
 * @since 2022-08-09
 */
@TableName("t_driver")
@ApiModel(value = "TDriver对象", description = "")
public class TDriver implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("司机id")
    @TableId(type = IdType.AUTO)  //告诉 数据库 映射表的主键
    private Integer driverId;

    @ApiModelProperty("司机名字")
    private String driverName;

    @ApiModelProperty("司机号码")
    private String driverPhone;

    @ApiModelProperty("承运商id")
    private Integer carrierId;

    @ApiModelProperty("汽车id")
    private Integer carId;

    @ApiModelProperty("承运商对象")
    @TableField(exist = false)
    private TCarrier TCarrier;

    @ApiModelProperty("汽车对象")
    @TableField(exist = false)
    private TCar car;

    public TCar getCar() {
        return car;
    }

    public void setCar(TCar car) {
        this.car = car;
    }

    public TCarrier getCarrier() {
        return TCarrier;
    }

    public void setCarrier(TCarrier TCarrier) {
        this.TCarrier = TCarrier;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }
    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }
    public String getDriverPhone() {
        return driverPhone;
    }

    public void setDriverPhone(String driverPhone) {
        this.driverPhone = driverPhone;
    }
    public Integer getCarrierId() {
        return carrierId;
    }

    public void setCarrierId(Integer carrierId) {
        this.carrierId = carrierId;
    }
    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    @Override
    public String toString() {
        return "Driver{" +
                "driverId=" + driverId +
                ", driverName='" + driverName + '\'' +
                ", driverPhone='" + driverPhone + '\'' +
                ", carrierId=" + carrierId +
                ", carId=" + carId +
                ", carrier=" + TCarrier +
                ", car=" + car +
                '}';
    }
}

